﻿{template admin_improt}
<style type="text/css">
<!--
.errorStyle{width:750px;margin:5px;padding:5px;background:#FFD4C9;border:1px solid #FF724F;}
-->
</style>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
			用户详细信息
		</span>
	</div>
	{if ($nickname_err)}<div class="errorStyle">{$nickname_err} </div>{/if}
	{if ($mobile_phone_err)}<div class="errorStyle">{$mobile_phone_err} </div>{/if}
	{if ($address_err)}<div class="errorStyle">{$address_err} </div>{/if}
	{if ($type_err)}<div class="errorStyle">{$type_err} </div>{/if}
	{if ($msg_err)}<div class="errorStyle">{$msg_err} </div>{/if}
	{if ($name_err)}<div class="errorStyle">{$name_err} </div>{/if}
	{if ($email_err)}<div class="errorStyle">{$email_err} </div>{/if}
	{if ($mobile_phones_err)}<div class="errorStyle">{$mobile_phones_err} </div>{/if}
	<form action="admin.php?p=user&a=userupdate" method="post" enctype="multipart/form-data">
		<table width="100%"  border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="11%" height="36" align="right">登陆账号：</td>
				<td width="89%">
					<input type="text" id="title" name="nickname" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['nickname']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">密码：</td>
				<td width="89%">
					<input type="text" id="password" name="password" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value=""/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">手机号：</td>
				<td width="89%">
					<input type="text" id="title" name="mobile_phone" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['mobile_phone']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">真实姓名：</td>
				<td width="89%">
					<input type="text" id="name" name="name" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['name']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">性别：</td>
				<td width="89%">
					<input type="radio" name="sex" id="sex" value="1" {if $data['sex'] == '1'}checked{/if}>男
					<input type="radio" name="sex" id="sex" value="2" {if $data['sex'] == '2'}checked{/if}>女
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">用户类型：</td>
				<td width="89%">
					<input type="radio" name="user_type" id="user_type" value="1" {if $data['user_type'] == '1'}checked{/if}>商家
					<input type="radio" name="user_type" id="user_type" value="2" {if $data['user_type'] == '2'}checked{/if}>普通用户
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">电子邮箱：</td>
				<td width="89%">
					<input type="text" id="email" name="email" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['email']}"/>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">所在地区：</td>
				<td width="89%">
					<select name="address" id="address">
						<option value="萨尔图区" {if $data['address'] == "萨尔图区"}selected{/if}>萨尔图区</option>
						<option value="让胡路区" {if $data['address'] == "让胡路区"}selected{/if}>让胡路区</option>
						<option value="龙凤区" {if $data['address'] == "龙凤区"}selected{/if}>龙凤区</option>
						<option value="大同区" {if $data['address'] == "大同区"}selected{/if}>大同区</option>
						<option value="红岗区" {if $data['address'] == "红岗区"}selected{/if}>红岗区</option>
						<option value="肇州县" {if $data['address'] == "肇州县"}selected{/if}>肇州县</option>
						<option value="肇源县" {if $data['address'] == "肇源县"}selected{/if}>肇源县</option>
						<option value="林甸县" {if $data['address'] == "林甸县"}selected{/if}>林甸县</option>
						<option value="杜尔伯特蒙古族自治县" {if $data['address'] == "杜尔伯特蒙古族自治县"}selected{/if}>杜尔伯特蒙古族自治县</option>
					</select>
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">注册ip地址：</td>
				<td width="89%">
					<input type="text" id="title" name="regip" style="width:450px;height:16px;padding:3px;border:1px solid #bbbbbb;" value="{$data['regip']}"/><span style="margin-left:10px;color:#ff0000">(不能修改)</span> 
				</td>
			</tr>
			<tr>
				<td width="11%" height="36" align="right">验证状态：</td>
				<td width="89%">
					<select name="type">
						<option value="1"  {if $data['type'] == "1"}selected{/if}>通过</option>
						<option value="2"  {if $data['type'] == "2"}selected{/if}>未通过</option>
					</select>
				</td>
			</tr>
			<tr>
				<td height="48" align="right"></td>
				<td>
					<input type="hidden" id="mid" name="mid" value="{$data['mid']}">
					<input type="submit" name="Submit" value=" 保存 " />
				</td>
			</tr>
		</table>
	</form>
</div>
{template admin_bottom}